<template>
    <div class="edit-container">
      <h1>修改个人信息</h1>
  
      <!-- 表单 -->
      <form class="user-form">  
        <!-- 姓名 -->
        <div class="form-group">
          <label for="name">新账号名</label>
          <input
            type="text"
            id="name"
            required
            placeholder="请输入您的新账号名"
          />
        </div>
  
        <!-- 邮箱 -->
        <div class="form-group">
          <label for="email">新密码</label>
          <input
            type="password"
            id="password"
            required
            placeholder="请输入您的新密码"
          />
        </div>
        <div class="form-group">
          <label for="email">确认密码</label>
          <input
            type="repassword"
            id="repassword"
            required
            placeholder="请再次输入密码"
          />
        </div>
        <!-- 提交按钮 -->
        <button type="submit" class="submit-btn">提交</button>
      </form>
    </div>
  </template>
  
  <script setup>
  </script>
  
  <style scoped>
  /* 基础样式 */
  body {
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    padding: 0;
  }
  
  .edit-container {
    width: 80%;
    max-width: 600px;
    margin: 50px auto;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  
  h1 {
    text-align: center;
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  /* 表单样式 */
  .user-form {
    display: flex;
    flex-direction: column;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #333;
  }
  
  .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
  }
  
  .gender-options {
    display: flex;
    gap: 20px;
  }
  
  button.submit-btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
  }
  
  button.submit-btn:hover {
    background-color: #0056b3;
  }
  
  /* 错误提示 */
  .error {
    color: #f44336;
    margin-bottom: 15px;
  }
  
  .error p {
    margin: 5px 0;
  }
  
  </style>